package com.amigo.online.consumer.user.service;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.amigo.online.common.core.response.Response;
import com.amigo.online.common.param.dto.login.ExistDto;
import com.amigo.online.common.param.dto.login.LoginByIdDto;
import com.amigo.online.common.param.dto.login.LoginDto;
import com.amigo.online.common.param.dto.login.RegisterDto;



@FeignClient(name = "amigo-online-provider-user")
public interface LoginService {

	@RequestMapping(value = "/user/login", method = RequestMethod.POST)
    public ResponseEntity<Response> login(LoginDto loginDto);

	@RequestMapping(value = "/user/register", method = RequestMethod.POST)
    public ResponseEntity<Response> register(RegisterDto dto);
    
	@RequestMapping(value = "/user/exist", method = RequestMethod.POST)
    public ResponseEntity<Response> exist(ExistDto dto);

	@RequestMapping(value = "/user/loginById", method = RequestMethod.POST)
	public ResponseEntity<Response> loginById(LoginByIdDto dto);
}
